﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using DR.DBDomainModel;
using DR.Repository.Concrete.LinqToSql;
using DR.WebUI.Models.Enums;

namespace DR.WebUI.Models.Manager
{
    public class ReportModel
    {
        public int ID { get; set; }
        public string Title { get; set; }
        public string Decsriprion { get; set; }
        public int DeveloperID { get; set; }
        public int ProjectID { get; set; }
    }

    public class ReportsOverviewModel
    {
        public int ReportID { get; set; }
        public string Description { get; set; }
        public string Project { get; set; }
        public string Developer { get; set; }
        public string ReportTitle { get; set; }
        public string ReportDescription { get; set; }
        public DateTime? DateReporting { get; set; }
        public DateTime DateCreate { get; set; }
        public decimal Hours { get; set; }
        public ReportStatus State { get; set; }
    }

    public class ReportFilter
    {
        public int? ReportingPeriodID { get; set; }
        public int? ProjectID { get; set; }
        public int? DeveloperID { get; set; }
        private ISet<int> selectedReportStatuses = new HashSet<int>();
        public ISet<int> SelectedReportStatuses
        {
            get
            {
                return selectedReportStatuses;
            }
        }

        public ReportFilter()
        {
            selectedReportStatuses.Add((int)ReportStatus.Pending);
        }
    }
    
}